package cn.codeforfun.service;

import cn.codeforfun.service.fb.FeignServiceFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * Package cn.codeforfun.service
 * Project springcloud-practice
 * Author Bin.Wang
 * Created on 2017/4/13 17:43
 * version 1.0.0
 */
@FeignClient(value = "cloud-service", fallback = FeignServiceFallback.class)
public interface FeignService {

  @RequestMapping(value = "/add", method = RequestMethod.GET)
  String add(@RequestParam("a") String a, @RequestParam("b") String b);

}
